package com.taobao.api.request;

import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.TaobaoObject;
import java.util.Map;

import com.taobao.api.ApiRuleException;
import com.taobao.api.BaseTaobaoRequest;
import com.taobao.api.internal.util.TaobaoHashMap;
import com.taobao.api.internal.util.json.JSONWriter;
import com.taobao.api.response.TmallNrOrderQuerystatusResponse;

/**
 * TOP API: tmall.nr.order.querystatus request
 * 
 * @author top auto create
 * @since 1.0, 2018.07.25
 */
public class TmallNrOrderQuerystatusRequest extends BaseTaobaoRequest<TmallNrOrderQuerystatusResponse> {
	
	

	/** 
	* 可用于透传的买家id，常用于外部技术体系的买家信息透传
	 */
	private Long buyerId;

	/** 
	* 请求参数
	 */
	private String param1;

	public void setBuyerId(Long buyerId) {
		this.buyerId = buyerId;
	}

	public Long getBuyerId() {
		return this.buyerId;
	}

	public void setParam1(String param1) {
		this.param1 = param1;
	}

	public void setParam1(NrPayStatusReq param1) {
		this.param1 = new JSONWriter(false,true).write(param1);
	}

	public String getParam1() {
		return this.param1;
	}

	public String getApiMethodName() {
		return "tmall.nr.order.querystatus";
	}

	public Map<String, String> getTextParams() {		
		TaobaoHashMap txtParams = new TaobaoHashMap();
		txtParams.put("buyer_id", this.buyerId);
		txtParams.put("param1", this.param1);
		if(this.udfParams != null) {
			txtParams.putAll(this.udfParams);
		}
		return txtParams;
	}

	public Class<TmallNrOrderQuerystatusResponse> getResponseClass() {
		return TmallNrOrderQuerystatusResponse.class;
	}

	public void check() throws ApiRuleException {
	}
	
	/**
 * 请求参数
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class NrPayStatusReq extends TaobaoObject {

	private static final long serialVersionUID = 1566139118966959147L;

	/**
		 * 新零售交易平台分配给每个场景特定的code
		 */
		@ApiField("biz_identity")
		private String bizIdentity;
		/**
		 * 淘系订单id
		 */
		@ApiField("biz_order_id")
		private String bizOrderId;
	

	public String getBizIdentity() {
			return this.bizIdentity;
		}
		public void setBizIdentity(String bizIdentity) {
			this.bizIdentity = bizIdentity;
		}
		public String getBizOrderId() {
			return this.bizOrderId;
		}
		public void setBizOrderId(String bizOrderId) {
			this.bizOrderId = bizOrderId;
		}

}


}